package com.taptech.doufu.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 小说目录实体类
 * Created by op0509 on 2016/6/29.
 */
public class NovelSectionListBean implements Parcelable {
    private String add_time;// 章节创建时间
    private String id;// 章节id
    private String length;// 字数
    private boolean need_pay;// 是否需要付费
    private String title;// 标题
    private int vip;

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public boolean isNeed_pay() {
        return need_pay;
    }

    public void setNeed_pay(boolean need_pay) {
        this.need_pay = need_pay;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        this.vip = vip;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.add_time);
        dest.writeString(this.id);
        dest.writeString(this.length);
        dest.writeByte(this.need_pay ? (byte) 1 : (byte) 0);
        dest.writeString(this.title);
        dest.writeInt(this.vip);
    }

    public NovelSectionListBean() {
    }

    protected NovelSectionListBean(Parcel in) {
        this.add_time = in.readString();
        this.id = in.readString();
        this.length = in.readString();
        this.need_pay = in.readByte() != 0;
        this.title = in.readString();
        this.vip = in.readInt();
    }

    public static final Parcelable.Creator<NovelSectionListBean> CREATOR = new Parcelable.Creator<NovelSectionListBean>() {
        @Override
        public NovelSectionListBean createFromParcel(Parcel source) {
            return new NovelSectionListBean(source);
        }

        @Override
        public NovelSectionListBean[] newArray(int size) {
            return new NovelSectionListBean[size];
        }
    };
}
